<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/8/15
 * Time: 14:45
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\admin\controller;

use app\common\business\Setting as BusObj;
use think\App;
use think\facade\Cache;
use think\facade\View;

class Setting extends AdminBase
{
    protected ?BusObj $busObj = null;

    public function __construct(App $app)
    {
        $this->busObj = new BusObj();
        parent::__construct($app);
    }
    public function index(){
        return View::fetch();
    }
    public function clear(){
        Cache::clear();
        return json([
            "code"=>1,
            "msg"=>"清理成功"
        ]);
    }
}